<template>
    <div>message的值:{{message}}
        <p>obj.message的值:{{obj.message}}</p>
    </div>
</template>
<script setup>
import { reactive,toRefs } from 'vue'

const obj = reactive({message:'hello world'})
let {message} = toRefs(obj)
setTimeout(()=>{
    console.log('之前的信息'+obj.message);
    message.value = 'hello vue'
     console.log('之后的信息'+obj.message);
},1000);

</script>